package extra

import "github.com/spf13/cast"

// Extra 订单扩展信息
type Extra map[string]any

func (o Extra) String(key string) string {
	return cast.ToString(o[key])
}

func (o Extra) Int(key string) int {
	return cast.ToInt(o[key])
}
